﻿<UserControl x:Class="IBTrader.Frontend.Log.Status"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    </UserControl.Resources>
    <StatusBar>
        <StatusBarItem DockPanel.Dock="Right">
            <Rectangle Width="20" Height="20" Fill="Green" Visibility="{Binding IsConnected, Converter={StaticResource BooleanToVisibilityConverter}}"/>
        </StatusBarItem>
        <StatusBarItem>
            <TextBlock Text="{Binding LastMessage}"/>
        </StatusBarItem>
    </StatusBar>
</UserControl>
